#include "iterator.h"

int main(){
    MyContainer<int> *container= new MyVector<int>(10);
    container->push_back(1);
    container->push_back(2);
    container->push_back(3);
    container->push_back(4);
    container->push_back(5);
    container->push_back(6);
    container->push_back(7);
    container->push_back(8);
    container->push_back(9);
    container->push_back(10);
    container->push_back(11);
    container->push_back(12);

    Iterator<int>* it = container->CreateIterator();
    for(it->first();it->hasNext();it->next())
    {
        std::cout << it->currentItem() << std::endl;
    }

    return 0;
}